package com.dao;

import com.pojo.Student;

import java.util.ArrayList;

/**
 * @author 陈Ser
 * @ClassName addStudent
 * @description: TODO
 * @Date 2021/9/10 14:31
 * @Version 1.0
 */
public class addStudent {
    public boolean add(ArrayList<Student> arrayList, Student student) {
        arrayList.add(student);
        return true;
    }

    public boolean add(ArrayList<Student> arrayList, Student[] students) {
        for (Student stu :
                students) {
            arrayList.add(stu);
        }
        return true;
    }
}
